package org.rocky.consumer;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author Rocky
 */
@SpringBootApplication
@EnableAspectJAutoProxy
@EnableRabbit
public class RmqConsumerApplication {

    public static void main(String[] args) {
        SpringApplication.run(RmqConsumerApplication.class, args);
    }

    @Bean
    public Map<String,Integer> keys(){
        //有问题
     return new ConcurrentHashMap<>(16);
    }
}
